// SPDX-License-Identifier: GPL-2.0-only
#ifndef _BROILER_ASSEMBLY_H
#define _BROILER_ASSEMBLY_H

#define __ALIGN .p2align 4, 0x90
#define ENTRY(name)     \
	__ALIGN;        \
	.globl name;    \
	name:

#define GLOBAL(name)    \
	.globl name;    \
	name:

#define ENTRY_END(name)	GLOBAL(name##_end)
#define END(name)	GLOBAL(name##_end)

/*
 * gas produces size override prefix with which
 * we are unhappy, lets make it hardcoded for
 * 16 bit mode
 */
#define IRET	.byte 0xcf

#endif /* BROILER_ASSEMBLY_H */
